### SDF Section ### {{{
IMAPStore sdf-remote
Host ma.sdf.org
Port 993
User demure
PassCmd "pass cli/mail-sdf-imap"
AuthMechs LOGIN
TLSType IMAPS
## Note: Use `openssl s_client -connect ma.sdf.org:993 -showcerts | openssl x509 -outform PEM > ~/.config/cert/ma.sdf.org` to update cert file`
CertificateFile ~/.config/cert/ma.sdf.org.pem

MaildirStore sdf-local
Subfolders Verbatim
Path ~/.mail/sdf/
Inbox ~/.mail/sdf/INBOX
Flatten .

Channel sdf
Expunge Both
Far :sdf-remote:
Near :sdf-local:
Patterns *
Create Both
SyncState *
##MaxMessages $maxmes
ExpireUnread no
### End SDF Section ### }}}

### Gmail Section ### {{{
IMAPStore gmail-remote
Host imap.gmail.com
Port 993
User demuredemeanor@gmail.com
PassCmd "pass cli/mail-gmail"
AuthMechs LOGIN
TLSType IMAPS
##CertificateFile /etc/ssl/certs/ca-certificates.crt

MaildirStore gmail-local
Subfolders Verbatim
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/INBOX
Flatten .

### Gmail Channels ### {{{
Channel gmail-main
Expunge Both
Far :gmail-remote:
Near :gmail-local:
Pattern INBOX Bulletin Orders People
Create Both
SyncState *
ExpireUnread no

Channel gmail-sent
Expunge Both
Far :gmail-remote:"[Gmail]/Sent Mail"
Near :gmail-local:Sent
Create Both
SyncState *
ExpireUnread no

Channel gmail-drafts
Expunge Both
Far :gmail-remote:"[Gmail]/Drafts"
Near :gmail-local:Drafts
Create Both
SyncState *
ExpireUnread no

Channel gmail-spam
Expunge Both
Far :gmail-remote:"[Gmail]/Spam"
Near :gmail-local:Spam
Create Both
SyncState *
ExpireUnread no

Channel gmail-trash
Expunge Both
Far :gmail-remote:"[Gmail]/Trash"
Near :gmail-local:Trash
Create Both
SyncState *
ExpireUnread no
### End Gmail Channels ### }}}

group gmail
Channel gmail-main
Channel gmail-sent
Channel gmail-drafts
Channel gmail-spam
Channel gmail-trash
### End Gmail Section ### }}}

### VPS Section ### {{{
IMAPStore vps-remote
Host mail.gandi.net
Port 993
User demure@demu.red
PassCmd "pass cli/mail-vps"
AuthMechs LOGIN
TLSType IMAPS

MaildirStore vps-local
Subfolders Verbatim
Path ~/.mail/vps/
Inbox ~/.mail/vps/INBOX
Flatten .

Channel vps
Expunge Both
Far :vps-remote:
Near :vps-local:
Patterns *
Create Both
SyncState *
##MaxMessages $maxmes
ExpireUnread no
### End VPS Section ### }}}
